///////////////////////////////////////////////////////////////////////////////
// File:        TimeUtil.hpp
// Author:      671643387@qq.com
// Description:
///////////////////////////////////////////////////////////////////////////////

#ifndef MONKEY_COMMON_TIMEUTIL_HPP_
#define MONKEY_COMMON_TIMEUTIL_HPP_

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif

#include <time.h>
#if defined(__WINDOWS__)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif

namespace monkey
{
    namespace common
    {
        class TimeUtil
        {
        public:
#if defined(__WINDOWS__)
            typedef DWORD   time_t;
#elif defined(__LINUX__)
            typedef long    time_t;
#endif

        public:
            TimeUtil(void);
            ~TimeUtil(void);

        public:
            static time_t fromStartup(void);
        };
    }
}

#endif /* MONKEY_COMMON_TIMEUTIL_HPP_ */
